import Vue from 'vue'
import Element from './element.vue'
import Control from './control.vue'
import {addBaseElement} from '@/utils/element'

Vue.component(Element.name, Element)
Vue.component(Control.name, Control)

addBaseElement({
    type: Element.name,
    name: '文本',
    icon: 'icon-text',
    eData: {
        type: Element.name, 
        attrCtrl: Control.name, 
        'data-delay': 0,
        'data-emphasis-delay': 1000,
        'data-out-delay': 28000,
        'data-emphasis-count': 'infinite',
        value: '海豹视维-文本',
        styleObj: {
            width: 200, 
            height: 32, 
            color: '#000000', 
            angel: 0, 
            fontSize: 24, 
            fontWeight: 'normal', 
            left: 250, 
            top: 200, 
            animationCount: '1', 
            fontFamily: 'Arial'
        }
    }
})